#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    QGridLayout* gridLayout = new QGridLayout();
    for(int i = 0;i<100;i++)
    {
        QPushButton* button = new QPushButton("Button" + QString::number(i));
        gridLayout->addWidget(button,i,i);
    }
    this->setLayout(gridLayout);
}

Widget::~Widget()
{
    delete ui;
}

